package com.qf.shop.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @ Author     ：lzq.
 * @ Date       ：Created in 8:58 2020/10/21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user") // 当java实体对象与数据库表名不符合的时候，需要通过该属性来指定
public class User {
    //标签自增
//    @TableField

@TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String password;
    private String email;
    private String sex;
    private Integer status;//激活状态
    private String phone;
    private Date registerDate;
    private Long balance;






}
